package com.lowcodeai.auth.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger配置
 * 
 * @author LowCodeAI
 * @since 1.0.0
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("低代码AI平台 - 认证服务API")
                        .description("用户认证、授权管理相关接口")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("LowCodeAI")
                                .email("admin@lowcodeai.com")
                                .url("https://github.com/lowcodeai"))
                        .license(new License()
                                .name("MIT License")
                                .url("https://opensource.org/licenses/MIT")));
    }
} 